package org.dromara.solonplugins.nettyservlet.http;

import java.io.IOException;

import org.dromara.solonplugins.nettyservlet.integration.NettyServletPlugin;
import org.noear.solon.boot.ServerProps;
import org.noear.solon.core.handle.Context;
import org.noear.solon.web.servlet.SolonServletHandler;

//Servlet模式
public class UsHttpContextServletHandler extends SolonServletHandler{
	@Override
    protected void preHandle(Context ctx) throws IOException {
        if (ServerProps.output_meta) {
            ctx.headerSet("Solon-Boot", NettyServletPlugin.solon_boot_ver());
        }
    }

}
